package com.ruike.mapper;

import com.ruike.pojo.AcademicBuilding;
import com.ruike.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 吴泽胜
 * @FileName AcademicBuildingMapper
 * @date 2021-01-18 2:56 下午
 * @Software: IntelliJ IDEA
 */
@Mapper
public interface AcademicBuildingMapper {

    // 获取 AcademicBuilding 列表
    public List<AcademicBuilding> getAcademicBuildingList() throws Exception;

    // 通过id修改状态
    public void updataStateById(AcademicBuilding academicBuilding) throws Exception;

    // 通过id查找
    public AcademicBuilding findAcademicBuildingById(Integer id) throws Exception;

    // 通过id删除
    public void deleteAcademicBuildingById(Integer id) throws Exception;

    // 通过id修改状态
    public void updateAcademicBuildingById(AcademicBuilding academicBuilding) throws Exception;

    //添加 AcademicBuilding
    public void addAcademicBuilding(AcademicBuilding academicBuilding) throws Exception;

    // 模糊搜索 AcademicBuilding 列表
    public List<AcademicBuilding> fuzzyAcademicBuildingList(@Param(value="searchParam") String searchParam) throws Exception;

    // 查询 启用 状态的 AcademicBuilding 列表
    public List<AcademicBuilding> getIsActiveAcademicBuildingList() throws Exception;


}
